package com.neu.cpspgateway.dao;

import com.neu.cpspgateway.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.Map;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByNamePassword(Map<String, Object> data);

    Integer selectIdByName(String name);

    User selectUserByName(String name);
}